package cn.kow.kmall.pojo.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: lijun
 * @Description:
 * @Date: Created in 2020-04-17 15:42
 * @Modified By:
 */
@Data
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class ItemEditDTO {

    private Long itemId;

    private String itemName;

    private String simpleDesc;

    private String primaryPic;

    private List<String> swiperPics;

    private String detail;

    private Long categoryId;

    private Integer sort;

    private Short status;

    private Short itemStatus;

    private String remark;

    private List<ItemSpec> specList;

    private List<ItemAttributeDTO> attrList;

    private List<ItemSkuDTO> skuList;

    private String operator;

    public ItemEditDTO() {
    };

    @Data
    public static class ItemSpec implements Serializable {

        public ItemSpec(){
        };

        private String name;

        private Integer sort;

        private List<ItemSpecOption> options;
    }

    @Data
    public static class ItemSpecOption implements Serializable {

        public ItemSpecOption(){
        };

        private String option;

        private Integer sort;
    }
}
